﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Title="优惠活动产品选择" CodeFile="discount_product.aspx.cs" Inherits="discount_product" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:DataList ID="DataList1" runat="server" BackColor="White" HorizontalAlign="Center"
        BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        GridLines="Horizontal" onitemcommand="DataList1_ItemCommand" DataSource="<%#result%>">
        <AlternatingItemStyle BackColor="#F7F7F7" />
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <ItemStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
         <ItemTemplate>
             <div style="width:800px;margin:30px;text-align:center">
                <div style="width:300px;float:left;margin:20px;">
            	    <div style="text-align:center">
                        <%# DataBinder.Eval(Container.DataItem, "p_name")  %>
                    </div>
                    <asp:Image ID="Image1" Width="300px" style="width:300px;" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"p_image")%>' />
                </div>
                <div style="margin-top:60px;float:left">
                    <asp:Button ID="Button1" runat="server" Text="确定优惠产品" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "p_id")%>' CommandName="Insert"/>          
            
                </div>
            </div>
         </ItemTemplate>
    </asp:DataList>
</asp:Content>

